package com.jic.order.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.order.entity.OrderSplit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单拆单规则表
 * @author : 
 * @email : 
 * @since : 2020-02-26 10:53:12
 * @version : v1.0.0
 */
@Mapper
public interface  OrderSplitMapper {

    long insert(OrderSplit orderSplit);

    long delete(Long id);

    long update(OrderSplit orderSplit);

    OrderSplit queryByPrimaryKey(Long id);

    List<OrderSplit> query(OrderSplit orderSplit);

    List<OrderSplit> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("orderSplit") OrderSplit orderSplit);

    long queryPageCount(OrderSplit orderSplit);

    long editOrderSplitStatus(@Param("id") Long id);
}